/**
*作用：根据月份判断天数
*作者：魔戒（the_ring)
*时间：2010-02-18
**/

import java.util.Scanner;

class Test1 {
    public static void main (String[] args) {
        Scanner s = new Scanner(System.in);
        int month = s.nextInt();
        switch (month) {
            case 2:
                System.out.println("The month has 28 days!");
                break;
            case 1:
            case 3:
            case 5:
            case 7:
            case 8:
            case 10:
            case 12:
                System.out.println("The month has 31 days!");
                break;
            case 4:
            case 6:
            case 9:
            case 11:
                System.out.println("The month has 30 days!");
                break;
        }
    }
}